package 过滤器模式;

import java.util.List;
import java.util.stream.Collectors;

public class GirlFilter implements Filter{


    @Override
    public List<Person> filter(List<Person> personList) {
        return  personList.stream().filter(person -> person.getGender().equals("女")).collect(Collectors.toList());
    }
}
